// 以前token 令牌，如果存到本地，每一次都写这么长，太麻烦了
// localStorage.setItem("键"， 值)
// localStorage.getItem("键")
// localStorage.removeItem(键)
const KEY = 'my-token-element-pc'
// 获取
export const getToken = () => {
  return localStorage.getItem(KEY)
}
// 设置
export const setToken = (newToken) => {
  localStorage.setItem(KEY, newToken)
}

// 删除
export const delToken = () => {
  localStorage.removeItem(KEY)
}
